//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS_INTERNAL_CRITSEC_H__
#define __ELASTOS_INTERNAL_CRITSEC_H__

ELAPI_(void) _Elastos_SequencedContext_Enter(
        /* [in] */ void *pContext);

ELAPI_(void *) _Elastos_SequencedContext_Leave();

ELAPI_(void *) _Elastos_CriticalSection_Enter(
        /* [in] */ CRITICAL_SECTION *pCriticalSection);

ELAPI_(void) _Elastos_CriticalSection_Leave(
        /* [in] */ CRITICAL_SECTION *pCriticalSection,
        /* [in] */ void *pContext);

#endif // __ELASTOS_INTERNAL_CRITSEC_H__
